package org.framework.test.util;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * <p>
 * <p>Title:CommonResult.java</p >
 * <p>Description: </p >
 * <p>Copyright: Copyright(c)2020</p >
 * <p>Date:2021/5/29 14:50</p >
 *
 * @author quzp
 * @version 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CommonResult<T> {

    /**
     * 返回值编码
     */
    private Integer code;

    /**
     * 返回值信息
     */
    private String message;

    /**
     * 返回值数据
     */
    private T data;

    public CommonResult(Integer code, String message) {
        this(code,message,null);
    }
}